home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PD Collection CD 1
/
PD Collection CD 1.iso
/
comms
/
riscbbs
/
!RiscBBS
/
BBS
/
Guess
< prev
next >
Wrap
Text File
|
1992-02-22
|
1KB
|
52 lines
{more 0 attr 0 7 cls}
{attr 4 3 cll} >>> The Fabulous Arcland Guessing Game <<<{attr 0 7}
{eval V0 `RND MOD 2000` eval V1 0}
I think of a number between {fg 6}0{fg 7} and {fg 6}1999{fg 7} and you must try to guess it
within {fg 2}10{fg 7} tries... If you succeed, you user-level will go up {fg 6}5{fg 7} units...
if you fail, it'll go down {fg 6}5{fg 7} units !!!
Do you want to continue? (Y/n) {yesno 1 V2 if V2=0 eoln eof endif}
Succes !!!
{
eval V1 0
eval V2 0
do `V2<>V0 AND V1<11`
fg 3 send `Try `
fg 1 print V1
fg 3 send `, make a guess: `
attr 4 7 field 4 read V2 4 attr 0 6 eoln
alt select
case "V2"=""
send `Invalid try, you must enter a number!` eoln
skip
case V2<V0
send `No, it's greater!` eoln
skip
case V2>V0
send `No, it's smaller!` eoln
skip
case V2=V0
if SYSOP=0
level +5
endif
send `Bravo !!! You've guessed it! Your user-level is now `
eval V3 LEVEL
print V3 eoln
eval V1 11
skip
endalt
eval V1 V1+1
enddo
if V2<>V0
if SYSOP=0
level -5
endif
send `What a pity, you failed! Your user-level is now `
eval V3 LEVEL
print V3 eoln
endif
}